Colin Walters [Wed, 23 May 2012 11:48:16 +0000 (07:48 -0400)]
core: Make device/inode loose object cache work for parent repos too
Otherwise ostbuild suddenly becomes significantly slower when using a
shadow repo.
Colin Walters [Tue, 22 May 2012 12:26:17 +0000 (08:26 -0400)]
ostbuild: Few more misc fixes
Colin Walters [Mon, 21 May 2012 22:41:59 +0000 (18:41 -0400)]
ostbuild: Fix typos in component lookup path
Colin Walters [Sat, 19 May 2012 00:25:02 +0000 (20:25 -0400)]
ostbuild: Enhance source-diff with --log and --logp options
Colin Walters [Sat, 19 May 2012 00:12:35 +0000 (20:12 -0400)]
ostbuild: Add source-diff builtin
OMG OMG OMG
Colin Walters [Sat, 19 May 2012 00:12:17 +0000 (20:12 -0400)]
core: Rearrange code for clarity (doesn't actually fix leaks)
Colin Walters [Wed, 16 May 2012 13:23:24 +0000 (09:23 -0400)]
ostbuild: Drop dead branch-prefix and pull-components
And other various tweaks.
Colin Walters [Tue, 15 May 2012 14:11:50 +0000 (10:11 -0400)]
ostbuild: Various fixes, removal of dead code
Colin Walters [Tue, 15 May 2012 12:54:44 +0000 (08:54 -0400)]
ostbuild: Remove /var from components
We expect them to create on demand.
Colin Walters [Tue, 15 May 2012 12:39:17 +0000 (08:39 -0400)]
ostbuild: Fix git-mirror
Colin Walters [Tue, 15 May 2012 02:43:25 +0000 (22:43 -0400)]
ostbuild: Some work on qemu deployment
Colin Walters [Mon, 14 May 2012 13:29:38 +0000 (09:29 -0400)]
ostadmin: Update for new trees/ location of trees
Colin Walters [Tue, 15 May 2012 00:47:14 +0000 (20:47 -0400)]
ostbuild: Add import-tree
This is the new workflow:
$ ostbuild import-tree wip-gnome-menus-3.6
$ $EDITOR ~/build/ostbuild/snapshots/wip-gnome-menus-3.6-2012.1-abcd.json
$ ostbuild build
Colin Walters [Sun, 13 May 2012 19:53:55 +0000 (15:53 -0400)]
ostbuild: Tighten build process significantly
First, "resolve" now just picks git commits. We don't expand
config-opts and patches, nor do we generate tree contents. This makes
the generated files *much* more human editable.
Next, fold "build-components" and "compose" into just "build". One
never really wants to just build components. This lets us eliminate
binary snapshots as a concept; instead we always have a combination of
source snapshot and component/ refs.
Colin Walters [Sat, 12 May 2012 14:42:23 +0000 (10:42 -0400)]
ostbuild: More work on partial builds
Colin Walters [Fri, 11 May 2012 22:22:28 +0000 (18:22 -0400)]
ostbuild: Make partial builds work
If we have component-revisions in our source+binary snapshot, then
we can skip them.
Colin Walters [Fri, 11 May 2012 20:24:32 +0000 (16:24 -0400)]
ostbuild: Write out related objects on composes
Colin Walters [Fri, 11 May 2012 20:24:23 +0000 (16:24 -0400)]
ostbuild: Minor fixes
Colin Walters [Thu, 10 May 2012 23:07:54 +0000 (19:07 -0400)]
ostbuild: Make binary snapshots an extension of source
This significantly simplifies things; we no longer need to retrieve
individual components via 'pull-components', etc.
Colin Walters [Tue, 15 May 2012 14:43:55 +0000 (10:43 -0400)]
tests: Tweak valgrind suppression
Colin Walters [Tue, 15 May 2012 02:23:01 +0000 (22:23 -0400)]
core: Prefer packed metadata
Colin Walters [Mon, 14 May 2012 19:49:49 +0000 (15:49 -0400)]
core: Map metadata from repository as trusted
ot_util_variant_map() assumed untrusted; add a boolean, and use it for
the repository internals.
Colin Walters [Tue, 15 May 2012 21:49:59 +0000 (17:49 -0400)]
core: Limit recursion during traversal
The related objects commit introduced OSTREE_MAX_RECURSION; use it.
Colin Walters [Tue, 15 May 2012 00:46:41 +0000 (20:46 -0400)]
core: Add write-refs builtin
This will be used by import-tree to pipe refs to write.
Colin Walters [Fri, 11 May 2012 20:23:28 +0000 (16:23 -0400)]
core: Allow adding related objects to commits
This will be used to store the set of components.
Colin Walters [Mon, 14 May 2012 16:26:15 +0000 (12:26 -0400)]
core: Really fix saving variants with REPLACE_DESTINATION
Colin Walters [Mon, 14 May 2012 15:31:53 +0000 (11:31 -0400)]
core: Make argument parsing more robust against "lt-ostree" name
When running uninstalled, we were parsing our argv[0] incorrectly.
Colin Walters [Mon, 14 May 2012 14:21:05 +0000 (10:21 -0400)]
core: Replace pack superindex via rename() rather than truncating
This helps allow cloning repositories via "cp -al".
Colin Walters [Mon, 14 May 2012 15:15:24 +0000 (11:15 -0400)]
core: Clarify error message
Matthias Clasen [Tue, 8 May 2012 03:19:21 +0000 (23:19 -0400)]
ostree-pull: Avoid an uninitialized variable warning
Matthias Clasen [Fri, 11 May 2012 01:00:48 +0000 (21:00 -0400)]
core: fix a typo
ostree config had two 'set' subcommands, but no 'get'.
Colin Walters [Sat, 12 May 2012 14:39:39 +0000 (10:39 -0400)]
core: Don't look in packs if we found loose object
Unless the caller wants us to; which at present none do, but let's be
forward looking and add an option.
Colin Walters [Thu, 10 May 2012 18:29:23 +0000 (14:29 -0400)]
ostbuild: Add ostree-revision in buildroots, bin-to-src
First, for binary snapshots we need to include the exact revision of
the architecture buildroot. To do that, introduce
"architecture-buildroots2".
Second, for bin-to-src, we'd like to allow "partial" builds. So while
we do expand everything to source, *also* include the binary
ostree-revision. This will allow building just one component, while
reusing the previously built binaries.
Colin Walters [Thu, 10 May 2012 14:30:02 +0000 (10:30 -0400)]
ostbuild: Fix pull-components
We need to pull the actual commits, not the refs.
Colin Walters [Thu, 10 May 2012 14:29:26 +0000 (10:29 -0400)]
pull: Use API to stage files with length
Not doing so at the moment triggers a bug in the staging path, and
it's more efficient anyways.
Colin Walters [Thu, 10 May 2012 13:54:56 +0000 (09:54 -0400)]
pull: Add --prefer-loose option
This is a hack...
Colin Walters [Thu, 10 May 2012 13:47:24 +0000 (09:47 -0400)]
core: unpack: Add --keep-packs option
Matches the pack --keep-all-loose.
Colin Walters [Thu, 10 May 2012 12:50:37 +0000 (08:50 -0400)]
core: Fix ostree-pull to be able to look up remotes in parent repo
We should probably add a generalized inheritance mechanism.
Colin Walters [Thu, 10 May 2012 03:20:36 +0000 (23:20 -0400)]
core: pack: Keep loose objects which are referenced externally
By default, don't delete loose objects which have hard links. This
has the natural semantics that if you delete all the checkouts, you
probably want it packed.
Conversely, if it has a hard link, we do want further checkouts to
share storage, even if we pack in between them.
Colin Walters [Thu, 10 May 2012 03:19:54 +0000 (23:19 -0400)]
core: unpack: Actually delete no-longer-needed pack files
Colin Walters [Wed, 9 May 2012 23:46:29 +0000 (19:46 -0400)]
ostbuild: resolve: Add --fetch-patches option
This is kind of lame, but...
Colin Walters [Wed, 9 May 2012 23:40:24 +0000 (19:40 -0400)]
ostbuild: Allow using dirty-git: for patches too
Colin Walters [Wed, 9 May 2012 23:36:46 +0000 (19:36 -0400)]
ostbuild: Use .lastfetch file per branch
This way we don't try to update gtk+ twice, once for gtk master and
once for gtk-2-22.
Colin Walters [Wed, 9 May 2012 18:23:10 +0000 (14:23 -0400)]
ostree.doap: Update
Adrian Perez [Wed, 9 May 2012 15:49:03 +0000 (18:49 +0300)]
ostree-pull: Fix segfault by initializing pull_data earlier
In the case of not being able to check the repository or not being able
to parse command line arguments, attributes from "pull_data" would be used
with garbage in them. This patch makes initialization of the sctructure to
happen earlier so it is safe to use in those cases.
Colin Walters [Wed, 9 May 2012 16:46:04 +0000 (12:46 -0400)]
ostbuild: build-components: Ensure specifying components forces rebuild
Colin Walters [Wed, 9 May 2012 12:45:56 +0000 (08:45 -0400)]
Move gnomeos/ to "gnome-ostree" module
Now that we're hopefully going to be changing the format less. The
layering here is now more clear, rather than having things entangled.
Colin Walters [Tue, 8 May 2012 15:37:42 +0000 (11:37 -0400)]
Release 2012.6
Colin Walters [Tue, 8 May 2012 15:59:39 +0000 (11:59 -0400)]
build: A few dist fixes so a tarball build works
Colin Walters [Tue, 8 May 2012 14:21:38 +0000 (10:21 -0400)]
ostadmin: Use /ostree for current working directory of checkouts
Otherwise we put them in the wrong place.
Colin Walters [Tue, 8 May 2012 13:14:03 +0000 (09:14 -0400)]
ostadmin: Make a /ostree/current symbolic link
Colin Walters [Sun, 6 May 2012 21:03:50 +0000 (17:03 -0400)]
ostadmin: Initial code
Carl-Anton Ingmarsson [Sun, 6 May 2012 19:47:01 +0000 (21:47 +0200)]
ostbuild: further fixes to pull-components
Call self.parse_config() so that all necessary directories are parsed.
Also don't call nonexistant self.parse_active_branch() and just use
self.active_branch since it's already have been initialized.
Carl-Anton Ingmarsson [Sun, 6 May 2012 17:10:35 +0000 (19:10 +0200)]
gnomeos: fix ostree-install.sh
add back ARCH and BRANCH_PREFIX constants which are still in use.
Carl-Anton Ingmarsson [Thu, 26 Apr 2012 14:49:04 +0000 (16:49 +0200)]
15_ostree: only look for ostree initramfs
also only add a kernel entry if we find a corresponding initramfs
Colin Walters [Mon, 7 May 2012 21:51:12 +0000 (17:51 -0400)]
ostbuild: Default to (previous) --skip-built
For components specified on the command line, we now force a rebuild.
There's also a new option to skip if the git revision matches, but
metadata changed (useful for now to avoid cascading builds if you know
you don't need it).
Colin Walters [Mon, 7 May 2012 18:55:57 +0000 (14:55 -0400)]
NetworkManager: Fix permissions on config file
https://mail.gnome.org/archives/ostree-list/2012-May/msg00008.html
Matthias Clasen [Sun, 6 May 2012 02:40:03 +0000 (22:40 -0400)]
ostbuild: make pull-components work
This builtin did not work for me. It did not initialize self.repo,
it used the nonexisting parse_active_branch function unconditionally,
and it did not actually find the list of components in contents.json.
This commit fixes all three of these issues.
Matthias Clasen [Sun, 6 May 2012 03:05:37 +0000 (23:05 -0400)]
Fix a typo
Matthias Clasen [Sun, 6 May 2012 00:59:23 +0000 (20:59 -0400)]
ostree: avoid a segfault
When running ostree --repo=/ostree/repo without further arguments,
we end up calling strcmp with one argument being NULL.
Matthias Clasen [Sat, 5 May 2012 22:11:27 +0000 (18:11 -0400)]
checkout: Deal gracefully with bad input
I had a /ostree/gnomeos-3.4-i686-devel directory, and this caused
ostree --repo=repo checkout gnomeos-3.5-i686-devel
to segfault.
Colin Walters [Sat, 5 May 2012 20:03:53 +0000 (16:03 -0400)]
Release 2012.5
Colin Walters [Sat, 5 May 2012 20:00:53 +0000 (16:00 -0400)]
core: pack: Fix calculation of size of pack objects
In archive mode, due to the previous change, we're now only
looking at metadata size, which is clearly wrong.
Colin Walters [Sat, 5 May 2012 18:59:14 +0000 (14:59 -0400)]
core: pull: Fix regression from memory leak fixes
Colin Walters [Sat, 5 May 2012 16:58:56 +0000 (12:58 -0400)]
gnomeos: Delete some files that are now on the wiki
Colin Walters [Sat, 5 May 2012 15:53:05 +0000 (11:53 -0400)]
Release 2012.4
Colin Walters [Sat, 5 May 2012 15:21:45 +0000 (11:21 -0400)]
core: Compile again on GLib 2.28
Colin Walters [Sat, 5 May 2012 15:06:59 +0000 (11:06 -0400)]
Release 2012.3
Colin Walters [Sat, 5 May 2012 14:42:56 +0000 (10:42 -0400)]
Revert "manifest local"
This reverts commit
b05275865206acaf6b991212208984df878d86ba.
Conflicts:
gnomeos/3.4/gnomeos-3.4-src.json
Colin Walters [Sat, 5 May 2012 13:54:42 +0000 (09:54 -0400)]
ostbuild: Drop use of link cache, it's gone now
Colin Walters [Thu, 3 May 2012 17:26:43 +0000 (13:26 -0400)]
Clean up install scripts
Colin Walters [Thu, 3 May 2012 15:16:08 +0000 (11:16 -0400)]
ostbuild: Create deploy-qemu subcommand
Colin Walters [Thu, 3 May 2012 15:14:58 +0000 (11:14 -0400)]
gnomeos-setup: Initialize /var dynamically in ginitscripts
Rather than doing it in an installer.
Colin Walters [Thu, 3 May 2012 12:49:29 +0000 (08:49 -0400)]
triggers: Print name of each trigger we're running
Adrian Perez [Wed, 2 May 2012 18:29:40 +0000 (21:29 +0300)]
ostbuild: Make --shell-on-failure flag to work
Fixes an issue which would cause ostbuild to fail to spawn the
debug shell and print a traceback instead.
Colin Walters [Wed, 2 May 2012 18:49:32 +0000 (14:49 -0400)]
ostbuild: More work on deploy commands
Colin Walters [Wed, 2 May 2012 14:25:58 +0000 (10:25 -0400)]
ostbuild: Use --from-file for buildroot compose for easier debugging
Colin Walters [Wed, 2 May 2012 11:55:11 +0000 (07:55 -0400)]
ostbuild: Rename shadow-repo-init -> init
Colin Walters [Wed, 2 May 2012 11:30:49 +0000 (07:30 -0400)]
qemu-pull: Update to use pull-local
Colin Walters [Wed, 2 May 2012 11:30:02 +0000 (07:30 -0400)]
ostbuild: Checksum full component metadata for --skip-built
If we're using --skip-built, we really do want to rebuild if anything
changed (like the build dependency, configure arguments etc.)
Colin Walters [Wed, 2 May 2012 00:51:29 +0000 (20:51 -0400)]
ostbuild: Break out git-mirror from resolve
Other bits
Colin Walters [Tue, 1 May 2012 23:28:39 +0000 (19:28 -0400)]
ostbuild: Use expanduser
Colin Walters [Tue, 1 May 2012 20:45:34 +0000 (16:45 -0400)]
ostbuild: Lots more
Colin Walters [Tue, 1 May 2012 14:21:33 +0000 (10:21 -0400)]
ostbuild: Resolve takes --manifest arg
Colin Walters [Tue, 1 May 2012 14:02:34 +0000 (10:02 -0400)]
ostbuild: Add tree-to-bin and bin-to-src
Adrian Perez [Thu, 26 Apr 2012 15:21:27 +0000 (18:21 +0300)]
ostbuild: Fix DB saving with /tmp and builddir in different volumes
This fixes the case where /tmp resides in one volume, and the build
directory in a different one: by storing the temporary file in the
same directory as the target one, we avoid the case in which os.rename()
would cross file system boundaries.
Reviewed-by: Colin Walters <walters@verbum.org>
Colin Walters [Fri, 6 Apr 2012 19:12:57 +0000 (15:12 -0400)]
ostbuild: Major rework
Colin Walters [Sun, 29 Apr 2012 23:05:26 +0000 (19:05 -0400)]
manifest local
Colin Walters [Fri, 27 Apr 2012 20:58:06 +0000 (16:58 -0400)]
ostbuild: Show ostbuild log messages in warningfilter again
Colin Walters [Thu, 26 Apr 2012 12:15:39 +0000 (08:15 -0400)]
gnomeos-install: Call ostree.gnome.org server "gnome", not "origin"
Colin Walters [Wed, 2 May 2012 14:21:19 +0000 (10:21 -0400)]
core: checkout: Add --from-file option too
Easier for debugging if we don't have to redirect stdin.
Conflicts:
src/ostree/ot-builtin-checkout.c
Colin Walters [Wed, 2 May 2012 14:21:41 +0000 (10:21 -0400)]
core: Improve error message if we hit an unreadable file
Colin Walters [Thu, 3 May 2012 12:33:34 +0000 (08:33 -0400)]
core: Add a mutex to cache data structures in preparation for threading
Conflicts:
src/libostree/ostree-repo.c
Colin Walters [Wed, 2 May 2012 23:15:19 +0000 (19:15 -0400)]
core: pull-local: Be a bit more verbose, don't open objects we already have
Colin Walters [Fri, 4 May 2012 19:38:21 +0000 (15:38 -0400)]
core: Avoid checksumming hardlinks that point into repository
By default, when doing a commit, scan all of our loose objects and
build up a (device,inode) -> checksum hash. Then when we're doing a
commit, if we see a file with that (device,inode) pair, we can avoid
checksumming it.
Colin Walters [Fri, 4 May 2012 18:22:09 +0000 (14:22 -0400)]
core: Drop --link-cache option, we do it by default now for archives
Colin Walters [Fri, 4 May 2012 15:02:15 +0000 (11:02 -0400)]
core: [INCOMPATIBLE CHANGE] Re-split archive content into .file and .filecontent
This will allow us to use hard links again for user-mode checkouts,
rather than the hackish link cache. It was pretty silly anyways to
have file objects be stored with just a small metadata header
prepended, but uncompressed.
Either they should be hardlinkable, or compressed (in pack files).
Colin Walters [Fri, 4 May 2012 17:40:25 +0000 (13:40 -0400)]
core: Handle zero-sized archives, improve fsck error message
Colin Walters [Fri, 4 May 2012 14:04:32 +0000 (10:04 -0400)]
core: Add valgrind framework, plug various memory leaks
Colin Walters [Fri, 4 May 2012 10:15:47 +0000 (06:15 -0400)]
core: Optimize commits to raw repositories
Avoid creating a temporary intermediate file in the case where we have
the total object length available.